      package cn.com.broad;
      
      import cn.com.common.Poke;
import cn.com.cal.PokeCal;
      import cn.com.cal.PokeCalVo;
      import com.server.thread.ConnectionThread;
      import java.util.ArrayList;
import java.util.List;
      
      
      /**
       * 坐位类
       * @author jj043
       *
       */
      public class Board_seat
      {
        private int id;        						     	//坐位id
		private int user_id;                                //用户id
		private int table_id;  							    //桌子ID
        private boolean seating = false;   				    //是否坐下
        private boolean is_palying = false;				    //是否在玩
        private int gol_pool = 0;         		 		    //下注
        private List<Poke> pokelist = new ArrayList<Poke>();//牌列表
        private byte seat_state = 10; 					    //坐下状态
        private ConnectionThread userthread;  				//用户线程
        private boolean if_zhan=false;        			    //是否庄
        private int[] array;                            	//牌值
        private PokeCal nu=null;           				    //牛值

        /**
         * 重设值
         *
         */
        public void resetSeat()
        {
        	this.seating = false;      
        	this.is_palying = false;      
        	this.pokelist.clear();      
        	this.seat_state = 10;
        	this.array = null;
        	this.userthread = null;
        	this.gol_pool = 0;
        }

        
        public int[] getArray()
        {
        	return this.array;
        }
      
        public void setArray(int[] array) 
        {
        	this.array = array;
        }
      
        public ConnectionThread getUserthread() 
        {
        	return this.userthread;
        }
      
        public void setUserthread(ConnectionThread userthread) 
        {
        	this.userthread = userthread;
        }
      
        /**
         * 桌子状态（是否开局）
         * @return
         */
        public byte getSeat_state() 
        {
        	return this.seat_state;
        }

        /**
         * 桌子状态（是否开局）
         * @return
         */
        public void setSeat_state(byte seat_state) 
        {
        	this.seat_state = seat_state;
        }
      
        /**
         * 玩家列表
         * @return
         */
        public List<Poke> getPokelist() 
        {
        	return this.pokelist;
        }
        
        /**
         * 是否开局
         * @return
         */
        public boolean isIs_palying() 
        {
        	return this.is_palying;
        }
      
        /**
         * 是否开局
         * @return
         */
        public void setIs_palying(boolean is_palying) 
        {
        	this.is_palying = is_palying;
        }
      
        public int getTable_id() 
        {
        	return this.table_id;
        }
      
        public Board_seat(int i, int table_id) 
        {
        	this.id = i;
        	this.table_id = table_id;
        }
        
        public void setId(int id) {
			this.id = id;
		}
        

        public int getId() 
        {
        	return this.id;
        }
      
        /**
         * 是否坐下
         */
        public boolean isSeating() 
        {
        	return this.seating;
        }
      
        /**
         * 是否坐下
         * @param seating
         */
        public void setSeating(boolean seating) 
        {
        	this.seating = seating;
        }
      
        /**
         * 奖池
         * @return
         */
        public int getGol_pool() 
        {
        	return this.gol_pool;
        }
      
        /**
         * 下注
         * @return
         */
        public void setGol_pool(int gol_pool) 
        {
        	this.gol_pool = gol_pool;
        }
      
        
		/**
		 * @return the if_zhan
		 */
		public boolean isIf_zhan()
		{
			return if_zhan;
		}

		/**
		 * @param if_zhan the if_zhan to set
		 */
		public void setIf_zhan(boolean if_zhan) 
		{
			this.if_zhan = if_zhan;
		}

		/**
		 * @return the nu
		 */
		public PokeCal getNu() 
		{
			return nu;
		}

		/**
		 * @param nu the nu to set
		 */
		public void setNu(PokeCal nu) 
		{
			this.nu = nu;
		}
		
		public int getUser_id() {
			return user_id;
		}


		public void setUser_id(int user_id) {
			this.user_id = user_id;
		}
 }

